package models.repository.common;

import models.entities.CategoryEntity;
import models.exceptions.CreateEntityException;
import models.shop.Category;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
@Deprecated
public interface CategoryRepository {
    int create(CategoryEntity category) throws IOException, CreateEntityException;
    CategoryEntity getList(int id) throws IOException;
    CategoryEntity getByTitle(String title) throws IOException;

    CategoryEntity get(int categoryId) throws IOException;

    List<Category> getListByParentId(int parentId) throws SQLException;
}
